package com.activity;

import com.wot2013.R;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LogInActivity extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.log_in);
		
		ActionBar actionBar = getActionBar();
		actionBar.hide();
		this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
		
		Button logBtn = (Button) findViewById(R.id.login_btn);
		logBtn.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(LogInActivity.this, MainActivity.class);
				startActivity(intent);
				finish();
			}					
		});
		
		Button registerBtn = (Button) findViewById(R.id.create_user_btn);
		registerBtn.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(LogInActivity.this, RegisterActivity.class);
				startActivity(intent);
			}					
		});

		
	}
}
